import java.io.Serializable;

public class Movie implements Serializable {
    private String id;
    private String name;
    private String duration; // 时长，如"120分钟"
    private String type;     // 类型，如"动作/科幻"
    private double price;    // 票价

    public Movie() {}

    public Movie(String id, String name, String duration, String type, double price) {
        this.id = id;
        this.name = name;
        this.duration = duration;
        this.type = type;
        this.price = price;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
